package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 帮扶措施表
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "帮扶措施表")
@TableName("assistance_measure")
public class AssistanceMeasure implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "措施唯一标识")
    @TableId(value = "measure_id", type = IdType.INPUT)
    private String measureId;

    @Schema(description = "关联农户编号")
    private String householdId;

    @Schema(description = "关联脱贫计划ID")
    private String planId;

    @Schema(description = "措施类型（产业/就业/教育/医疗等）")
    private String measureType;

    @Schema(description = "具体措施内容")
    private String measureContent;

    @Schema(description = "措施执行时间")
    private Date executeDate;

    @Schema(description = "执行单位")
    private String executeUnit;

    @Schema(description = "执行人")
    private String executor;

    @Schema(description = "投入资金（元）")
    private BigDecimal fundsAmount;

    @Schema(description = "实施效果反馈")
    private String effectFeedback;

    @Schema(description = "是否验收（0=未验收，1=已验收）")
    private String isVerified;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人(没想好用字符串还是用户名)")
    private String createBy;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "逻辑删除字段（0-未删除，1-已删除）")
    private Integer deleted;
}
